package com.project.bean;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;

/**
 * 灾情防治--事件记录实体类
 */

@TableName("t_event")
public class EventBean {
    @TableId(value = "pk_eventId",type = IdType.AUTO)
    private int eventId;
    /*** 事件名称 */
    @TableField("f_eventName")
    private String eventName;
    /*** 日期 */
    @TableField("f_eventTime")
    private LocalDate eventTime = LocalDate.now();
    /*** 灾情状态*/
    @TableField("f_eventStage")
    private String eventStage;
    /*** 受灾描述 */
    @TableField("f_eventDescribe")
    private String eventDescribe;
    /*** 损失 */
    @TableField("f_eventLoss")
    private String eventLoss;
    /*** 事件类型 */
    @TableField("f_eventType")
    private String eventType;
    /*** 发现途径 */
    @TableField("f_eventWay")
    private String eventWay;
    /*** 影响面积 */
    @TableField("f_eventArea")
    private String eventArea;
    /*** 图片 */
    @TableField("f_eventImg")
    private String eventImg;

    /*** 防治措施 */
    @TableField("f_eventControl")
    private String eventControl;

    /*** 专家建议 */
    @TableField(exist = false)
    private String advice;

//    @TableField("fk_areaId")
//    private int areaId;
    @TableField(exist = false)
    private AreaBean areaBean;

    @TableField(exist = false)
    private String areaName;//发生位置
    @TableField(exist = false)
    private String className;//所在小班

    @TableField(exist = false)
    private List<ConsultBean> consultBeanList = new ArrayList<>();

    public EventBean() {
    }

    public EventBean(String eventName, String eventStage, String eventDescribe, String eventLoss, String eventType, String eventWay, String eventArea, String eventImg,String eventControl) {
        this.eventName = eventName;
        this.eventStage = eventStage;
        this.eventDescribe = eventDescribe;
        this.eventLoss = eventLoss;
        this.eventType = eventType;
        this.eventWay = eventWay;
        this.eventArea = eventArea;
        this.eventImg = eventImg;
        this.eventControl = eventControl;
//        this.areaId = areaId;
    }

    public int getEventId() {
        return eventId;
    }

    public void setEventId(int eventId) {
        this.eventId = eventId;
    }

    public String getEventName() {
        return eventName;
    }

    public void setEventName(String eventName) {
        this.eventName = eventName;
    }

    public LocalDate getEventTime() {
        return eventTime;
    }

    public void setEventTime(LocalDate eventTime) {
        this.eventTime = eventTime;
    }

    public String getEventStage() {
        return eventStage;
    }

    public void setEventStage(String eventStage) {
        this.eventStage = eventStage;
    }

    public String getEventDescribe() {
        return eventDescribe;
    }

    public void setEventDescribe(String eventDescribe) {
        this.eventDescribe = eventDescribe;
    }

    public String getEventLoss() {
        return eventLoss;
    }

    public void setEventLoss(String eventLoss) {
        this.eventLoss = eventLoss;
    }

    public String getEventType() {
        return eventType;
    }

    public void setEventType(String eventType) {
        this.eventType = eventType;
    }

    public String getEventWay() {
        return eventWay;
    }

    public void setEventWay(String eventWay) {
        this.eventWay = eventWay;
    }

    public String getEventArea() {
        return eventArea;
    }

    public void setEventArea(String eventArea) {
        this.eventArea = eventArea;
    }

    public String getEventImg() {
        return eventImg;
    }

    public void setEventImg(String eventImg) {
        this.eventImg = eventImg;
    }


    public String getEventControl() {
        return eventControl;
    }

    public void setEventControl(String eventControl) {
        this.eventControl = eventControl;
    }

    public AreaBean getAreaBean() {
        return areaBean;
    }

    public void setAreaBean(AreaBean areaBean) {
        this.areaBean = areaBean;
    }

    public List<ConsultBean> getConsultBeanList() {
        return consultBeanList;
    }

    public void setConsultBeanList(List<ConsultBean> consultBeanList) {
        this.consultBeanList = consultBeanList;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getAdvice() {
        return advice;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public void setAdvice(String advice) {
        this.advice = advice;
    }

    @Override
    public String toString() {
        return "EventBean{" +
                "eventId=" + eventId +
                ", eventName='" + eventName + '\'' +
                ", eventTime=" + eventTime +
                ", eventStage='" + eventStage + '\'' +
                ", eventDescribe='" + eventDescribe + '\'' +
                ", eventLoss='" + eventLoss + '\'' +
                ", eventType='" + eventType + '\'' +
                ", eventWay='" + eventWay + '\'' +
                ", eventArea='" + eventArea + '\'' +
                ", eventImg='" + eventImg + '\'' +
                ", eventControl='" + eventControl + '\'' +
                ", areaBean=" + areaBean +
                ", className='" + className + '\'' +
                ", consultBeanList=" + consultBeanList +
                '}';
    }
}
